# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class TargetGroup(object):

    def __init__(self, targetGroupId=None, targetGroupName=None, loadBalancerId=None, loadBalancerType=None, loadBalancerName=None, description=None, createdTime=None, targets=None, type=None):
        """
        :param targetGroupId: (Optional) TargetGroup的Id
        :param targetGroupName: (Optional) TargetGroup的名字
        :param loadBalancerId: (Optional) TargetGroup所属LoadBalancer的Id
        :param loadBalancerType: (Optional) TargetGroup所属负载均衡类型，取值为：alb、nlb、dnlb
        :param loadBalancerName: (Optional) TargetGroup所属LoadBalancer的名称
        :param description: (Optional) TargetGroup的描述信息
        :param createdTime: (Optional) TargetGroup的创建时间
        :param targets: (Optional) Target列表。该字段即将下线，请勿使用，已经使用该字段查询Target详情的服务请尽快切换使用describeTargets接口
        :param type: (Optional) 实例或IP
        """

        self.targetGroupId = targetGroupId
        self.targetGroupName = targetGroupName
        self.loadBalancerId = loadBalancerId
        self.loadBalancerType = loadBalancerType
        self.loadBalancerName = loadBalancerName
        self.description = description
        self.createdTime = createdTime
        self.targets = targets
        self.type = type
